//
//  AY_BookVpStackView.m
//  AiYue
//
//  Created by boWen on 2023/10/26.
//

#import "AY_BookVpStackView.h"

@interface AY_BookVpStackView ()

@end

@implementation AY_BookVpStackView

- (instancetype)initWithFrame:(CGRect)frame {
    if([super initWithFrame:frame]) {
        self.topImgView = [AYTool createImageViewWithFrame:CGRectZero andImage:nil andBg:[UIColor clearColor] andRadius:0.0 andAddSubView:self];
        [self.topImgView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerX.equalTo(self);
            make.centerY.equalTo(self).offset(YNUM(-15));
            make.height.width.mas_offset(YNUM(40));
        }];
        
        self.downLabel = [AYTool createLabelWithFrame:CGRectZero andText:@"" andTextColor:COLOR(@"#F9D5BB") andBgColor:nil andFont:[UIFont systemFontOfSize:YNUM(12)] andLines:1 andRadius:0 andAddSubView:self];
        [self.downLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.equalTo(self.topImgView.mas_bottom).offset(YNUM(6));
            make.centerX.equalTo(self);
            make.height.mas_equalTo(YNUM(20));
        }];
    }
    return self;
}
@end
